package com.filmbooks.presenter.book;

import com.filmbooks.contract.book.BookMainContract;
import com.filmbooks.model.book.BookMainModel;
import com.zyw.horrarndoo.sdk.base.BasePresenter;

/**
 * Created by heshuxiang on 2018/3/2.
 * 描述：
 * 公司：盟将威
 * 作者：heshuxiang
 * 日期：2018/3/2.
 * 工程：FilmBooks
 * 包：com.filmbooks.presenter.book
 */

public class BookMainPresenter extends BookMainContract.BookMainPresenter {
    @Override
    public void getTabList() {
        if (mIView == null || mIModel == null)
            return;

        mIView.showTabList(mIModel.getTabs());
    }

    @Override
    public BookMainContract.IBookMainModel getModel() {
        return BookMainModel.newInstance();
    }

    @Override
    public void onStart() {

    }

    public static BookMainPresenter newInstance() {
        return new BookMainPresenter();
    }
}
